/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package centralehotel.metier.backoffice;

import centralehotel.dao.interfaces.AgenceDAOLocal;
import centralehotel.modele.Agence;
import javax.ejb.EJB;
import javax.ejb.Stateless;

/**
 *
 * @author Mathieu
 */
@Stateless
public class AgenceInscriptionMetier implements AgenceInscriptionMetierRemote, AgenceInscriptionMetierLocal {
    @EJB
    private AgenceDAOLocal agenceDAO;
    
    public void saveAgence(Agence agence){
        if(agence.getIdAgence()!=null)
            agenceDAO.create(agence);
        else
            agenceDAO.edit(agence);
    }
 
}
